import request from '@/utils/request'

// 查询工艺执行-明细列表
export function listProcessExecDetails(query) {
  return request({
    url: '/mes/processExecDetails/list',
    method: 'get',
    params: query
  })
}

// 查询工艺执行-明细详细
export function getProcessExecDetails(processExecDetailUuid) {
  return request({
    url: '/mes/processExecDetails/' + processExecDetailUuid,
    method: 'get'
  })
}

// 新增工艺执行-明细
export function addProcessExecDetails(data) {
  return request({
    url: '/mes/processExecDetails',
    method: 'post',
    data: data
  })
}

// 修改工艺执行-明细
export function updateProcessExecDetails(data) {
  return request({
    url: '/mes/processExecDetails',
    method: 'put',
    data: data
  })
}

// 删除工艺执行-明细
export function delProcessExecDetails(processExecDetailUuid) {
  return request({
    url: '/mes/processExecDetails/' + processExecDetailUuid,
    method: 'delete'
  })
}
